package com.ccnf.model.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("reward_prize")
public class RewardPrize {
    @ApiModelProperty("奖品ID")
    @TableId("prize_id")
    private Long prizeId;

    @ApiModelProperty("邀请函ID")
    @TableField("invitation_id")
    private Long invitationId;

    @ApiModelProperty("奖品名称")
    @TableField("prize_name")
    private String prizeName;

    @ApiModelProperty("排名")
    @TableField
    private Integer rank;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("奖品状态（0：未开奖，1：未领取，2：已领取，3：已过期）")
    @TableField("prize_status")
    private Integer prizeStatus;

    @ApiModelProperty("领取时间")
    @TableField("take_time")
    private Long takeTime;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;
}